package com.huoyun.announcement.action;

import java.util.ArrayList;
import java.util.List;

import com.huoyun.announcement.bean.Notice;
import com.huoyun.announcement.service.NoticeService;
import com.huoyun.base.action.BaseAction;

public class NoticeAction extends BaseAction {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	List<Notice> noticeList = new ArrayList<Notice>();
	NoticeService noticeService;
	int type;
	long id;

	public String getByReceiverId() {
		try {
			noticeList = noticeService.getByReceiverId(getLoginUser().getId());
		} catch (Exception e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}


	public List<Notice> getNoticeList() {
		return noticeList;
	}

	public void setNoticeList(List<Notice> noticeList) {
		this.noticeList = noticeList;
	}

	public NoticeService getNoticeService() {
		return noticeService;
	}

	public void setNoticeService(NoticeService noticeService) {
		this.noticeService = noticeService;
	}


	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

}
